
:root {
    --background: #fff;
    --primary: #000;
    --secondary: #9e9e9e;
    --accent: #2962FF
}

@media (prefers-color-scheme: light) {
  :root {
      --background: #fff;
      --primary: #000;
      --secondary: #9e9e9e;
      --accent: #2962FF;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
      --background: #212121;
      --primary: #f5f5f5;
      --secondary: #9e9e9e;
      --accent: #42a5f5;
  }
}

body {
    max-width: 1000px;
    margin: auto;
    color: var(--primary);
    background-color: var(--background);
    padding: 10px;
}

a, a:link {
    color: var(--accent)
}

ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style-position: inside;
    flex-wrap: wrap;
}

h1 {
    margin-top: 2rem;
    text-align: center;
}

h3 {
    margin-top: 3rem;
    cursor: pointer;
}

h3 .anchor {
    float: left;
    margin-left: -1em;
    line-height: 1.5;
    width: 1em;
    display: none;
}

h3:hover .anchor {
    display: block;
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    word-break: break-all;
}

table th {
    border-width: 1px;
    padding: 4px;
    border-style: solid;
    border-color: var(--secondary);
}

table td {
    border-width: 1px;
    padding: 2px;
    border-style: solid;
    border-color: var(--secondary);
}

footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 以下代码改自 https://github.com/tofsjonas/sortable/blob/main/sortable.css */

.sortable th.no-sort {
    pointer-events: none;
}

.sortable th:not(.no-sort) {
    cursor: pointer;
}

.sortable th::after {
    font-size: 1.2em;
    color: transparent;
    content: ' \025B8';
    cursor: pointer;
}

.sortable th:hover::after {
    color: var(--primary);
}

.sortable th.dir-d {
    color: var(--primary);
}
  
.sortable th.dir-d::after {
    color: inherit;
    content: ' \025BE';
}
  
.sortable th.dir-u {
    color: var(--primary);
}
  
.sortable th.dir-u::after {
    color: inherit;
    content: ' \025B4';
}
